//
//  RandomColorViewController.m
//  20170207
//
//  Created by xuPeng on 2017/9/6.
//  Copyright © 2017年 陈旭鹏. All rights reserved.
//

#import "RandomColorViewController.h"

@interface RandomColorViewController ()

@end
// 随机颜色
#define RANDOM_COLOR [UIColor colorWithRed:arc4random_uniform(256) / 255.0 green:arc4random_uniform(256) / 255.0 blue:arc4random_uniform(256) / 255.0 alpha:1]
@implementation RandomColorViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"随机颜色";
    UILabel *lab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 100)];
    lab.backgroundColor = RANDOM_COLOR;
    lab.center = self.view.center;
    [self.view addSubview:lab];
    
}



@end
